package com.lyz.myself.service.ServiceImpl;

import com.lyz.myself.mapper.PositionMapper;
import com.lyz.myself.pojo.Po.Position;
import com.lyz.myself.service.PositionService;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class PositionServiceImpl implements PositionService {

    @Autowired
    private PositionMapper positionMapper;

    @Override
    public List<Position> positionList(Integer company_id) {
        return positionMapper.positionList(company_id);
    }

    /**
     * 根据role_id查询用户类型
     * @param role_id
     * @return
     */
    @Override
    public String getDescription(Integer role_id){
        return positionMapper.getDescription(role_id);
    }
}
